package com.fuyao.cloud.message.enums;

import com.fuyao.cloud.common.core.enums.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author lyhil
 */

@Getter
@AllArgsConstructor
public enum ModeEnum implements BaseEnum {

    /**
     * 短信+邮箱+系统消息定义枚举类
     */
    MESSAGE("0", "短信"),
    EMAIL("1", "邮箱"),
    SYSTEM_MSG("2", "系统消息"),
    MESSAGE_EMAIL("0,1", "短信,邮箱"),
    MESSAGE_SYSTEM("0,2", "短信,系统消息"),
    EMAIL_SYSTEM("1,2", "邮箱,系统消息"),
    MESSAGE_EMAIL_SYSTEM("0,1,2", "短信,邮箱,系统消息");
    /**
     * 类型
     */
    private final String type;

    /**
     * 描述
     */
    private final String description;


    @Override
    public String getCode() {
        return this.getCode();
    }

    @Override
    public String getName() {
        return this.getName();
    }
}
